package conf

import (
	"gopkg.in/yaml.v3"
	"os"
)

var c MainConf

func FromYamlFileLoadConfigs(filename string) (MainConf, error) {
	f, err := os.ReadFile(filename)
	if err != nil {
		return MainConf{}, err
	}

	err = yaml.Unmarshal(f, &c)
	return c, nil
}
